package vip.ola.service.dao.mapper.code;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import vip.ola.core.entity.code.CodeAccountHistory;

import java.util.Map;


/**
 * <p>
 * 资金账户流水表 Mapper 接口
 * </p>
 *
 * @author faker
 * @since 2020-03-25
 */
public interface CodeAccountHistoryMapper extends BaseMapper<CodeAccountHistory> {

    IPage<CodeAccountHistory> list(Page page, @Param("history") CodeAccountHistory history);

    Map countAll(@Param("history") CodeAccountHistory history);

    Map countAdd(@Param("history") CodeAccountHistory history);

    Map countSubtract(@Param("history") CodeAccountHistory history);

}
